Tweak how source paths are passed to the compiler
authorAlex Crichton <alex@alexcrichton.com>
Wed, 14 Jan 2015 03:10:16 +0000 (19:10 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 14 Jan 2015 03:45:05 +0000 (19:45 -0800)
commit4a91d015cf11044cf4d842dbdb4291f5a49a2e38
tree19d3bd8dae92c2008e00240c6c1d14bc4ad5eabf
parent553211119bbe57c177c233f26000dda7fa00b54a
Tweak how source paths are passed to the compiler

All paths printed will now be absolute paths unless the path is a descendant of
the current directory. This should keep error messages and warnings of a
reasonable length when working with the local project while still allowing
errors in registry/git dependencies to be tracked down.

Special care is taken in these situations to ensure that the error message from
the compiler prints a reasonable path.

Closes #209
Closes #694
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_bench.rs
tests/test_cargo_build_lib.rs
tests/test_cargo_compile.rs
tests/test_cargo_compile_custom_build.rs
tests/test_cargo_cross_compile.rs
tests/test_cargo_doc.rs
tests/test_cargo_profiles.rs
tests/test_cargo_run.rs